@extends('Home.Layout.layout')

@section('con')

	<!--bottom-header-->
	<!--start-breadcrumbs-->
	<div class="breadcrumbs">
		<div class="container">
			<div class="breadcrumbs-main">
				<ol class="breadcrumb">
					<li><a href="{{url('/')}}">首页</a></li>
					<li class="active">我的收藏</li>				
				</ol>
			</div>
		</div>
	</div>
	<!--end-breadcrumbs-->
	<!--start-product--> 
		<div class="shoes"> 
		<div class="container"> 
			@foreach($goods as $k=>$v)
			<div class="product-one">
				@foreach($v as $kk=>$vv)
				<div class="col-md-3 product-left"> 
					<div class="p-one simpleCart_shelfItem">							
							<a  href="http://shoes.cn/home/goods/details?gid={{$vv->gid}}">
								<img src="{{$vv->gpic}}" alt="" />
								<div class="mask">
									<span>查看详情</span>
								</div>
							</a>
						<h4>{{$vv->gname}}</h4>
						<p><a class="item_add" href="http://shoes.cn/home/goods/details?gid={{$vv->gid}}"><span class=" item_price">${{$vv->price}}</span></a></p>
						<p><a class="delete" href="javascript:void(0)"><img src="/HomeCss/images/ljt.png" alt="" /></span></a></p>
						<input type="hidden" value="{{$vv->gid}}">
						
					</div>
				</div>
				@endforeach
				<div class="clearfix"> </div>
			</div>
			@endforeach
		</div>
	</div>
	<script type="text/javascript">
			$('.delete').click(function(){
				$(this).parents('.product-left').attr('id','1');
				var gid = $(this).parent().siblings('input').val();
				// alert(gid);
				$.get('/home/goods/collectdel',{gid:gid},function(data){
					if(data == 1){
						alert('商品删除成功');
						$('#1').remove();
					}else{
						alert('商品删除失败');
					}
				})
			})

			</script>
	<!--end-product-->
	<!--start-footer-->
	<div class="footer">
		<div class="container">
			<div class="footer-top">
				<div class="col-md-3 footer-left">
					<h3>ABOUT US</h3>
					<ul>
						<li><a href="#">Who We Are</a></li>
						<li><a href="contact.html">Contact Us</a></li>
						<li><a href="#">Our Sites</a></li>
						<li><a href="#">In The News</a></li>
						<li><a href="#">Team</a></li>
						<li><a href="#">Carrers</a></li>					 
					</ul>
				</div>
				<div class="col-md-3 footer-left">
					<h3>YOUR ACCOUNT</h3>
					<ul>
						<li><a href="account.html">Your Account</a></li>
						<li><a href="#">Personal Information</a></li>
						<li><a href="contact.html">Addresses</a></li>
						<li><a href="#">Discount</a></li>
						<li><a href="#">Track your order</a></li>					 					 
					</ul>
				</div>
				<div class="col-md-3 footer-left">
					<h3>CUSTOMER SERVICES</h3>
					<ul>
						<li><a href="#">FAQ</a></li>
						<li><a href="#">Shipping</a></li>
						<li><a href="#">Cancellation</a></li>
						<li><a href="#">Returns</a></li>
						<li><a href="#">Bulk Orders</a></li>
						<li><a href="#">Buying Guides</a></li>					 
					</ul>
				</div>
				<div class="col-md-3 footer-left">
					<h3>CATEGORIES</h3>
					<ul>
						<li><a href="#">Sports Shoes</a></li>
						<li><a href="#">Casual Shoes</a></li>
						<li><a href="#">Formal Shoes</a></li>
						<li><a href="#">Party Shoes</a></li>
						<li><a href="#">Ethnic</a></li>				 
					</ul>
				</div>
				<div class="clearfix"> </div>
			</div>
		</div>
	</div>
@endsection